# -*- coding: utf-8 -*-
#
# File: Program.py
#
# Copyright (c) 2009 by []
# Generator: ArchGenXML Version 2.1
#            http://plone.org/products/archgenxml
#
# GNU General Public License (GPL)
#

__author__ = """unknown <unknown>"""
__docformat__ = 'plaintext'

from AccessControl import ClassSecurityInfo
from Products.Archetypes.atapi import *
from zope.interface import implements
import interfaces
from Products.PloneFacilities.Facility import Facility
from Products.CMFDynamicViewFTI.browserdefault import BrowserDefaultMixin

from Products.PloneFacilities.config import *

##code-section module-header #fill in your manual code here
##/code-section module-header

copied_fields = {}
copied_fields['title'] = Facility.schema['title'].copy()
copied_fields['title'].widget.label = "Program Name"
copied_fields['description'] = Facility.schema['description'].copy()
copied_fields['description'].widget.description = "A short description of this program"
copied_fields['image'] = Facility.schema['image'].copy()
copied_fields['image'].widget.label = "Program Photo"
schema = Schema((

    copied_fields['title'],

    copied_fields['description'],

    copied_fields['image'],


),
)

##code-section after-local-schema #fill in your manual code here
##/code-section after-local-schema

Program_schema = BaseSchema.copy() + \
    getattr(Facility, 'schema', Schema(())).copy() + \
    schema.copy()

##code-section after-schema #fill in your manual code here
##/code-section after-schema

class Program(Facility, BrowserDefaultMixin):
    """
    """
    security = ClassSecurityInfo()

    implements(interfaces.IProgram)

    meta_type = 'Program'
    _at_rename_after_creation = True

    schema = Program_schema

    ##code-section class-header #fill in your manual code here
    ##/code-section class-header

    # Methods


registerType(Program, PROJECTNAME)
# end of class Program

##code-section module-footer #fill in your manual code here
##/code-section module-footer



